package com.dd.utils

import android.content.Context
import android.graphics.Typeface
import android.widget.TextView

/**
 * 设置自定义字体
 */
object FontUtil {
    /**
     * 设置impact字体
     * @param context
     * @param textView
     */
    fun formatImpact(context: Context, textView: TextView) {
        val mgr = context.assets
        val tf = Typeface.createFromAsset(mgr, "fonts/Impact.ttf")
        textView.typeface = tf
    }
}